package com.ikas.ai.server.module.alarm.controller;

import com.ikas.ai.handle.JsonResult;
import com.ikas.ai.server.module.alarm.service.AlarmCacheService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @menu 驾驶舱告警轮询接口
 */
@RestController
@RequestMapping("/alarm")
public class AlarmRoundController {
    @Autowired
    AlarmCacheService alarmCacheService;

    @GetMapping("/round")
    public JsonResult round(){
      return JsonResult.ok(alarmCacheService.round());
    }
}
